package de.wbh.gwt.form.layouter.shared.activity;

import java.util.List;

import com.allen_sauer.gwt.dnd.client.PickupDragController;
import com.allen_sauer.gwt.dnd.client.drop.CustomDropController;
import com.google.gwt.user.client.ui.IsWidget;

import de.wbh.gwt.form.layouter.gwt.rpc.PcfService.PositionedField;
import de.wbh.gwt.form.layouter.gwt.ui.view.widget.Field;
import de.wbh.gwt.form.layouter.shared.Box;

public interface EditPositionsView extends IsWidget {

	static interface Presenter {

		void dropControllerAdded(CustomDropController dropController);

		void fieldsCreated(List<Field> fields);

		void updatePositions(List<PositionedField> positionedFields);

	}

	void addFields(List<PositionedField> result);

	void dragControllerAdded(PickupDragController dragController);

	List<PositionedField> getPositionedFields();

	void setPresenter(Presenter presenter);

	void showBoxes(List<Box> boxes);

	void showImage(String url);

}
